package com.totem.admin.controller;

import com.totem.admin.api.AdminWalletServiceApi;
import com.totem.base.model.PageVO;
import com.totem.base.model.Result;
import com.totem.base.mybatis.controller.BaseController;
import com.totem.order.model.TWallets;
import com.totem.order.service.ITWalletService;
import com.totem.order.vo.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class AdminWalletController extends BaseController<ITWalletService, TWallets> implements AdminWalletServiceApi {
    @Override
    public Result<WithdrawPaymentVO> withdrawPayment(WithdrawPaymentVO vo) {
        return Result.success(service.withdrawPayment(vo));
    }
    @Override
    public Result<PageVO<WalletJournalVO>> journalPage(WalletJournalPageVO vo) {
        return Result.success(service.journalPage(vo));
    }

    @Override
    public Result<PageVO<CollectionJournalVO>> collectionJournalPage(CollectionJournalPageVO vo) {
        return Result.success(service.collectionJournalPage(vo));
    }

    @Override
    public Result<Boolean> updateWalletUSDT(UpdateWalletUSDTVO vo) {
        return Result.success(service.updateWalletUsdt(vo));
    }
}
